package edu.uestc.canary.admin.commons;

import edu.uestc.canary.entity.pojo.Administrator;

public class AdministratorHolder {
    public static ThreadLocal<Administrator> tl = new ThreadLocal<>();

    public static Administrator get() {
        return tl.get();
    }

    public static void set(Administrator administrator) {
        tl.set(administrator);
    }

    public static void remove() {
        tl.remove();
    }
}
